package com.example.texted.callable;

import java.util.concurrent.Callable;
import java.util.concurrent.TimeUnit;

//税收计算器
public class TaxCalculator implements Callable<Integer> {
    private  int seedMoney;

    public TaxCalculator(int _seedMoney) {
        this.seedMoney = _seedMoney;
    }

    @Override
    public Integer call() throws Exception {
        //复杂计算
        TimeUnit.SECONDS.sleep(10);
        return seedMoney/10;
    }
}
